#include "sComponentButton.h"
#include "sCIButton.h"
#include "sGUI.h"

namespace sgui
{
namespace res
{

const std::wstring sComponentButton::COMPONENT_NAME = L"BUTTON";

inst::sComponentInstance* sComponentButton::getInstance(sGUI& gui, const res::sComponentObject& object, inst::sComponentInstance* parent)
{
	return new inst::sComponentInstanceButton(gui, object, parent);
}
    
const std::wstring sComponentButton::getClass() const
{
	return COMPONENT_NAME;
}
   
void sComponentButton::fillRequredRects()
{
    sComponentLabel::fillRequredRects();
    registerRequiredComponentRect(sComponentRect::COMPONENT_RECT_TOUCH_ZONE);
}

sComponentButton::sComponentButton(sGUI& gui, const std::wstring& name) :
	sComponentLabel(gui, name)
{
	//
}

sComponentButton::~sComponentButton()
{
	//
}

};
};